package com.open.capacity.finance.dao;

import com.open.capacity.finance.entity.AuditModelWarn;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 模型指标搞定
 *
 * @author
 * @email
 * @date 2023-02-22 13:43:58
 */
@Mapper
public interface AuditModelWarnDao {

    int save(AuditModelWarn auditModelWarn);

    int update(AuditModelWarn auditModelWarn);

    int updateRemark(@Param("id") Long id, @Param("remark") String remark, @Param("remarkUsername") String remarkUsername, @Param("remarkCreateTime") Date remarkCreateTime);

    int updateIngoreFlag(@Param("id") Long id, @Param("ignoreEnddate") Date ignoreEnddate);

    int updateDealFlag(@Param("id") Long id, @Param("dealFlag") Integer dealFlag);

    int delete(Long id);

    AuditModelWarn findById(Long id);

    AuditModelWarn findNeedWarnDate(@Param("modelId") String modelId, @Param("companyId") String companyId);

    List<AuditModelWarn> findMy(Map<String, Object> params);

    List<AuditModelWarn> findAll(Map<String, Object> params);

    List<AuditModelWarn> findByCompanyId(@Param("companyId") String companyId);

}
